package com.xhj.bigfactory.javaSE;
import java.util.ArrayList;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @author haijianxia pure_xhj@163.com
 * @Date 2021-09-14
 * @Time 10:33
 */
public class ArrayListDemo {
  public static void main(String[] args) {
	  ArrayList<Integer> list1 =new ArrayList<>();
	  list1.add(6);list1.add(8);list1.add(11);

	  ArrayList<Integer> list2 =new ArrayList<>();
	  list2.add(6);list2.add(11);list2.add(8);

	  Object list1Json = JSON.toJSON(list1);
	  Object list2Json = JSON.toJSON(list1);

    System.out.println("list1Json = " + list1Json);
    System.out.println("list2Json = " + list2Json);

//    String list1Str= (String) list1Json;


  }
}
